@layout("/common/_container.html",{plugins:["ztree"],js:["/assets/modular/system/btyYhkbg/bonusYhkbg.js"],css:["/assets/common/css/beautiful.css"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">管理</span>
</div>
<style>
    #btn{
        width: 25px;
        float: right;
        padding-top: 10px;
        cursor: pointer;
    }
    #btn1{
        width: 25px;
        float: right;
        padding-top: 10px;
        padding-right: 15px;
        cursor: pointer;
    }
    .layui-form-label{
        width: 90px !important;
    }
</style>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">

                            <div class="layui-inline">
                                <label class="layui-form-label label-title">申请人/电话：</label>
                                <div class="layui-input-inline">
                                    <input id="sqr" lay-filter="sqr" class="layui-input" type="text" placeholder="申请人"/>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label label-title">审核状态</label>
                                <div class="layui-input-inline">
                                    <select id="status" name="status" lay-filter="status" lay-search="">
                                        <option value="">全部</option>
                                        <option value="1" selected>待审核</option>
                                        <option value="2">驳回</option>
                                        <option value="3">通过</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn layui-btn-sm  icon-btn">搜索</button>
                                <button id="btnPass" class="layui-btn layui-btn-sm  icon-btn">批量通过</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="btyYhkbgTable" lay-filter="btyYhkbgTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    {{#  if(d.status == '1'){ }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="tg">通过</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="bh">驳回</a>
    {{# } }}
</script>

<script id="statusTpl1" type="text/html">
    {{#  if(d.yhkyt == "1"){ }}
    工资卡
    {{#  }else if(d.yhkyt == "2"){ }}
    分红卡
    {{#  } }}
</script>

<script id="statusTpl2" type="text/html">
    {{#  if(d.status == "2"){ }}
    驳回
    {{#  }else if(d.status == "1"){ }}
    待审核
    {{#  }else if(d.status == "3"){ }}
    通过
    {{#  }else if(d.status == "9"){ }}
    全部
    {{#  } }}
</script>
@}